import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import show from '../atom/show';
import hide from '../atom/hide';
import fire_component_msg from '@feidao/web/atom/browser/fsm/fire-component-msg';

export default async function a002(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	//保存
	const f = fd.data.node.querySelector<HTMLFormElement>('#welfare_grant_info_form');
	const staff_name = f.staff_name.value;
	const welfare_name = f.welfare_name.value;
	const grant_time = f.grant_time.value;
	const wages_month = f.wages_month.value;
	const welfare_amount = f.welfare_amount.value;
	const is_taxes = f.is_taxes.value;
	const grant_goods = f.grant_goods.value;
	const memo = f.memo.value;
	if (!staff_name) {
		fire_component_msg('zj-common-002', 'ec-001', 'fail', '请选择员工');
	}

}
